package com.ymttest.database.sqlwapper;

import java.util.List;
import java.util.Map;

import com.ymt.database.SqlManager;

public class YmtProductPropertyWapper {
	SqlManager manage;

	public YmtProductPropertyWapper() {
		manage = new SqlManager("intpro");
	}
	
	@SuppressWarnings("unchecked")
	public List<Map<String,Object>> selectByProdId(String prodId) throws InterruptedException{
		return  manage.getSelectResults("com.ymttest.database.mapping.YmtProductPropertyMapper.selectByProdId", prodId);
	}
	
	
	
	public static void main(String[] args) throws InterruptedException {
		//System.out.println(new YmtProductDescExtraWapper().selectByTemplateId(1).getPicUrls());
		List<Map<String, Object>> rList = new YmtProductPropertyWapper().selectByProdId("2487be4a-b5c7-41c2-b378-75677f963bab");
		System.out.println(new YmtProductPropertyWapper().selectByProdId("2487be4a-b5c7-41c2-b378-75677f963bab").size());
	}
}
